import request from '@/utils/request'

// sso单点登录路径解析
export function getParamsKey(name) {
    let reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i')
    let r = window.location.search.substring(1).match(reg)
    if (r !== null) {
      return decodeURI(r[2])
    }
  }